<%=form_tag(search_roles_path,class: "navbar-form form-search active") do%>
	<div class=" form-group ">
		<input class="form-control" name="q" type="text" value="<%= params[:q]%>" placeholder="搜索用户" />
	</div>
	<i class="fa fa-search btn-search " ></i>
<%end%>

<div class=" panel panel-default">
	<div class="panel-body">
		<% if @users.present?%>
			<!--<#%=@users.results.total %>条-->
			<table class="table">
				<tr>
					<% @users.records.each_with_hit do |item,hit|%>
					<% if item.class.name.downcase.eql?("user")%>
						<td><%=item.name %></td>
						<td> </td>
						<td> </td>
						<td> </td>

					<%end%>
					<%end%>
				</tr>
		</table>
	<%end%>
	</div>

</div>